﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 

namespace DPS.Preparation
{
    public abstract class PreparationBase
    {

        public string DPSBatchId { get; private set; }
        public string Owner { get; private set; }

        public bool IsEssentialStep { get; set; }

        public bool ThrowExceptionWhenError { get; set; }

        public int SortNo { get; set; }

        public bool IsSuitableForParallel { get; set; }

        public PreparationBase PreConditionalStep { get; set; }


        public PreparationBase(string dpsBatchID, string owner)
        {
            this.DPSBatchId = dpsBatchID;
            this.Owner = owner;
        }

        public abstract PreparationResult ExcutePrapration();

    }
}
